package cn.bone.ou.data.mapper;

import cn.bone.ou.data.bean.CommunityFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommunityFileMapper extends BaseMapper<CommunityFile> {

    List<CommunityFile> list(@Param("communityId")Integer communityId,
                             @Param("start")Integer start,
                             @Param("num")Integer num,
                             @Param("name")String name);

    int countList(@Param("communityId")Integer communityId,
                  @Param("name")String name);

    /**获取文件总数*/
    int countAll(@Param("communityId")Integer communityId);
}
